package com.hqd.base.server.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hqd.base.client.model.entity.BaseGroup;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author su
 * @since 2020-01-02
 */
@Repository
public interface BaseGroupMapper extends BaseMapper<BaseGroup> {

    BaseGroup selectGroupByUserIdAndGroupType(@Param("userId") int paramInt1, @Param("groupType") int paramInt2);
    void deleteGroupMembersById(@Param("groupId") int paramInt);

    void deleteGroupLeadersById(@Param("groupId") int paramInt);

    void insertGroupMembersById(@Param("groupId") int paramInt1, @Param("userId") int paramInt2);

    void insertGroupLeadersById(@Param("groupId") int paramInt1, @Param("userId") int paramInt2);
}
